package com.zking.controller;

import com.zking.entity.User;
import lombok.NonNull;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

import javax.servlet.http.HttpSession;

@RestController
public class MyController3 {
    @RequestMapping("/json/index")
    public User index(Model model, /* @NonNull @Size(6-16) */ String name) {
        return new User(1001, "空", "拦截", 0.0);
    }
}
